<template>
	<view class="question-item" @click="navGoDetail(item)">
    <view class="flex align-center justify-between ">
      <view class="flex align-center text-333 text-cut ">
        <image class="fu-block-40 margin-right-16 flex-shrink" :src="imgBaseUrl + 'goods/questions.png'"/>
        <text class="text-bold text-cut">{{ item.question_content }}</text>
      </view>
    </view>
    <view class="">
      <view class="flex padding-top-16" v-if="item.answer_content">
        <image class="fu-block-40 margin-right-16 flex-shrink" :src="imgBaseUrl + 'goods/answer.png'"/>
        <text class="text-cut-2 text-weight-400 text-df text-333">{{ item.answer_content }}</text>
      </view>
      <view class="text-sm text-999 padding-top-24 flex align-center">
        <text class="padding-left-56  text-df " style="color: #2E76FF;">
          {{i18n['全部']}} {{ item.answer_number }}{{i18n['人进行了回答']}}
        </text>
      </view>
    </view>
	</view>
</template>

<script>
	/**
	 * @author
	 * @description 商品评价组件
	 * @param {Object} type - 没有用到这个属性，暂定
	 * @property {String} temp - 保存当前播放的是哪一个视频的id值+索引
	 */
	export default {
    name: 'fu-question-answers',
		props: {
			item: {
				type: Object,
				required: true
			}
		},
		data() {
			return {
				
			};
		},
		mounted() {
      
		},
		methods: {
      navGoDetail(item) {
        this.$urouter.navigateTo({
          url: '/pages/goods/ask-answer/problem-detail/index',
          params: {
            goods_id: this.item.goods_id,
            activity_id: this.item.activity_id,
            question_id: this.item.id
          }
        });
      },
		}
	};
</script>

<style lang="scss" scoped>
</style>
